# -*- coding: UTF-8 -*-
from fastapi import APIRouter

from dispatcher.routers.dispatch import dispatch_task
from dispatcher.routers.dispatch.dispatch_task_model_out import DispatchTaskResponseModel


dispatch_api = APIRouter(prefix='/create_dispatch_task', dependencies=[])


dispatch_api.add_api_route(
    'create_dispatch_task',
    dispatch_task.create_dispatch_task,
    methods=['POST'],
    summary="创建调度任务",
    response_model=DispatchTaskResponseModel
)